import { useIntersectionObserver } from '@vueuse/core'

export const userlazyDta = (lazyTarget, info) => {
  const { stop } = useIntersectionObserver(
    lazyTarget,
    ([{ isIntersecting }]) => {
      // console.log(isIntersecting ? '可见' : '不可见')
      if (isIntersecting) {
        info()
        stop()
      }
    }
  )
}
